package bean;

import java.io.Serializable;

/**
 * photo
 * @author 
 */
public class Photo implements Serializable {
    private Integer photoid;

    private Integer suozaiid;

    private Integer pictureid;

    private Integer phototype;

    private String zhufu;

    private String b;

    private String c;

    private static final long serialVersionUID = 1L;

    public Integer getPhotoid() {
        return photoid;
    }

    public void setPhotoid(Integer photoid) {
        this.photoid = photoid;
    }

    public Integer getSuozaiid() {
        return suozaiid;
    }

    public void setSuozaiid(Integer suozaiid) {
        this.suozaiid = suozaiid;
    }

    public Integer getPictureid() {
        return pictureid;
    }

    public void setPictureid(Integer pictureid) {
        this.pictureid = pictureid;
    }

    public Integer getPhototype() {
        return phototype;
    }

    public void setPhototype(Integer phototype) {
        this.phototype = phototype;
    }

    public String getZhufu() {
        return zhufu;
    }

    public void setZhufu(String zhufu) {
        this.zhufu = zhufu;
    }

    public String getB() {
        return b;
    }

    public void setB(String b) {
        this.b = b;
    }

    public String getC() {
        return c;
    }

    public void setC(String c) {
        this.c = c;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        Photo other = (Photo) that;
        return (this.getPhotoid() == null ? other.getPhotoid() == null : this.getPhotoid().equals(other.getPhotoid()))
            && (this.getSuozaiid() == null ? other.getSuozaiid() == null : this.getSuozaiid().equals(other.getSuozaiid()))
            && (this.getPictureid() == null ? other.getPictureid() == null : this.getPictureid().equals(other.getPictureid()))
            && (this.getPhototype() == null ? other.getPhototype() == null : this.getPhototype().equals(other.getPhototype()))
            && (this.getZhufu() == null ? other.getZhufu()== null : this.getZhufu().equals(other.getZhufu()))
            && (this.getB() == null ? other.getB() == null : this.getB().equals(other.getB()))
            && (this.getC() == null ? other.getC() == null : this.getC().equals(other.getC()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getPhotoid() == null) ? 0 : getPhotoid().hashCode());
        result = prime * result + ((getSuozaiid() == null) ? 0 : getSuozaiid().hashCode());
        result = prime * result + ((getPictureid() == null) ? 0 : getPictureid().hashCode());
        result = prime * result + ((getPhototype() == null) ? 0 : getPhototype().hashCode());
        result = prime * result + ((getZhufu() == null) ? 0 : getZhufu().hashCode());
        result = prime * result + ((getB() == null) ? 0 : getB().hashCode());
        result = prime * result + ((getC() == null) ? 0 : getC().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", photoid=").append(photoid);
        sb.append(", suozaiid=").append(suozaiid);
        sb.append(", pictureid=").append(pictureid);
        sb.append(", phototype=").append(phototype);
        sb.append(", zhufu=").append(zhufu);
        sb.append(", b=").append(b);
        sb.append(", c=").append(c);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}